/*
 * @Author: AskMeWhy
 * @Date: 2020-12-29 14:05:21
 * @Last Modified by: AskMeWhy
 * @Last Modified time: 2021-02-05 11:23:07
 */
const API_CONFIG = [
    {
        name: "list",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        mock: {
            open: false,
        },
        params: {
            // 全部为0，我创建的为1，我收到的为2
            taskKind: 2,
        },
        path: "/applet/task/pageByUser",
        desc: "任务管理-列表",
    },
    {
        name: "copyList",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        mock: {
            open: false,
        },
        params: {},
        path: "/applet/task/duplicate/list",
        desc: "抄送的任务",
    },
    {
        name: "person",
        namespace: "task",
        method: "post",
        setCommonParam: true,
        mock: {
            open: false,
        },
        params: {},
        path: "/applet/user/flatListByGovernment/:governmentId",
        desc: "获取区域人员",
    },
    {
        name: "turnTask",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        mock: {
            open: false,
        },
        params: {},
        path: "/applet/task/turnTask",
        desc: "任务指派",
    },
    {
        name: "addProcess",
        namespace: "task",
        method: "post",
        setCommonParam: true,
        mock: {
            open: false,
        },
        params: {},
        path: "/applet/process/addProcess",
        desc: "任务指派保留",
    },
    {
        name: "todoList",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        mock: {
            open: false,
        },
        params: {},
        path: "/applet/task/todo",
        desc: "任务管理-待办列表",
    },
    {
        name: "query",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/formData/get/:id",
        desc: "任务管理-数据详情",
    },
    {
        name: "dimension",
        namespace: "task",
        method: "get",
        setCommonParam: false,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/formData/get/:id",
        desc: "任务管理-数据填写维度",
    },
    {
        name: "add",
        namespace: "task",
        method: "post",
        setCommonParam: false,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/formData/add",
        desc: "任务管理-数据新增",
    },
    {
        name: "update",
        namespace: "task",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/formData/update",
        desc: "任务管理-数据修改",
    },
    {
        name: "audit",
        namespace: "task",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/audit",
        desc: "任务管理-状态修改",
    },
    {
        name: "completeTask",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/finishFill",
        desc: "任务管理-完成填报",
    },
    {
        name: "range",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/user/peerUsers",
        desc: "任务管理-发送范围",
    },
    {
        name: "sendTask",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/forward",
        desc: "任务管理-转发和发送任务",
    },
    {
        name: "finish",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/finishFill",
        desc: "任务管理-完成任务",
    },



    {
        name: "report",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/report",
        desc: "上报-填写",
    },
    {
        name: "reportUpdate",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/report/update",
        desc: "上报-更新",
    },
    {
        name: "reportDelete",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/report/delete",
        desc: "上报-删除",
    },
    {
        name: "reportDetail",
        namespace: "form",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/report/detail",
        desc: "任务-数据回显",
    },
    {
        name: "sbReportDetail",
        namespace: "form",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/small/declaration/report/detail",
        desc: "上报-数据回显",
    },
    {
        name: "taskDataList",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/task/data/list",
        desc: "上报详情列表",
    },

    {
        name: "processTaskDataList",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/task/data/process/list",
        desc: "上报详情列表",
    },
    {
        name: "showImg",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/showImg",
        desc: "上报-流程图",
    },
    {
        name: "approval",
        namespace: "task",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/approval",
        desc: "任务审批",
    },
    {
        name: "detail",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/detail",
        desc: "获取流程节点",
    },
    {
        name: "all/flowData",
        namespace: "task",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/formData/process/list",
        desc: "获取总任务数据",
    },
    {
        name: "getForwardt",
        namespace: "form",
        method: "get",
        setCommonParam: true,
        data: {},
        mock: {
            open: false,
        },
        path: "/applet/form/get/forward",
        desc: "分享-表单详情查询",
    },
    {
        name: "reportForward",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/report/forward",
        desc: "分享-上报-填写",
    },
    {
        name: "countByUser",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/task/countByUser/:assignee",
        desc: "根据用户ID查询任务列表统计",
    },
    {
        name: "getFormWxacode",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/task/wxacode/getFormWxacode/:formId",
        desc: "获取小程序码",
    },
    {
        name: "wxacodeInfo",
        namespace: "task",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/form/task/wxacode/wxacodeInfo/:uniqueId",
        desc: "获取小程序码内容",
    },
    {
        name: "shareReport",
        namespace: "form",
        method: "post",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/small/declaration/share/report",
        desc: "分享-上报-填写",
    },
    {
        name: "shareFormDetail",
        namespace: "form",
        method: "get",
        setCommonParam: true,
        params: {},
        mock: {
            open: false,
        },
        path: "/applet/small/declaration/share/form/detail/:formId",
        desc: "分享-上报-详情",
    },

];
export default API_CONFIG;
